package br.ufpe.cin.camid.core.objects;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class BlockingAcquireStrategy implements AcquireStrategy {

	private Lock lock;
	
	public BlockingAcquireStrategy()
	{
		lock = new ReentrantLock();
	}
	
	@Override
	public void acquire() 
	{
		lock.lock();
	}

	@Override
	public void release() 
	{
		lock.unlock();
	}

}
